<layout name="layout" />

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		
		<table border="" cellspacing="" cellpadding="">
			<tr>
				<th>ID</th>
				<th>NAME</th>
				<th>PASS</th>
				<th>加入时间</th>
				<th>登录时间</th>
				<th>登录次数</th>
				<th>状态</th>
				<th>操作</th>
			</tr>
			<volist name="data" id="admin">
			<tr>
				<td>{$admin[id]}</td>
				<td>{$admin[username]}</td>
				<td>{$admin[password]}</td>
				<td>{:date('Y-m-d H:i:s',$admin[time])}</td>
				<if condition="$admin['logintime']">
					<td>{:date('Y-m-d H:i:s',$admin[logintime])}</td>
				<else />
					<td>该用户未进行登录</td>
				</if>	
				<td>{$admin[loginnum]}</td>
				<if condition="$admin['status'] eq 0">
					<td>开启</td>
				<else />
					<td>禁用</td>
				</if>
				<td>
					<a href="{:U('edit')}">编辑</a>
					<a href="{:U('edit')}">删除</a>
				</td>
			</tr>	
			</volist>
			
		</table>
		{$total}
		<nav>
			{$page}
		</nav>
	</body>
</html>
